package cn.bgs.service.impl;

import cn.bgs.dao.EmployeeRegisterMapper;
import cn.bgs.pojo.EmployeeRegister;
import cn.bgs.pojo.StudentInformation;
import cn.bgs.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private EmployeeRegisterMapper employeeRegisterMapper;

    @Override
    public EmployeeRegister login(String email, String password) {
        return employeeRegisterMapper.login(email,password);
    }

    @Override
    public StudentInformation stuLogin(String email, String password) {
        return employeeRegisterMapper.stuLogin(email,password);
    }

    @Override
    public StudentInformation gradeSelone(Integer stuId) {
        return employeeRegisterMapper.gradeSelone(stuId);
    }

    @Override
    public List<StudentInformation> findAllStudent() {
        return employeeRegisterMapper.findAllStudent();
    }
}
